package com.wayne.blog.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wayne.blog.entity.Article;
import java.util.List;

public interface ArticleService extends IService<Article> {
    Page<Article> getArticlePage(Page<Article> page, Long categoryId, String keyword);
    Article getArticleDetail(Long id);
    void saveArticle(Article article, List<Long> tagIds);
    void updateArticle(Article article, List<Long> tagIds);
    void deleteArticle(Long id);
    List<Article> getRelatedArticles(Long id);
    void likeArticle(Long articleId);
}